#ifndef BAZA_DATE_LIB_H
#define BAZA_DATE_LIB_H

typedef struct Vector
{
	long * vector;  
	long size;

} Vector;


extern long intersectie_vectori(Vector vector1, Vector vector2, Vector vector_intersectie);
extern void pune_prop_cu_cuvantul_in_vector(char * cuvant, Vector vector_aparitii);
extern int nr_prop_cu_cuvantul(char * cuvant);
extern void pune_cuvinte_prop_in_vector(int prop_id, char ** vector_cuvinte);
extern int nr_cuvinte_in_prop(int prop_id);
extern int ia_urmatoarea_propozitie();
extern void sparge_prop_in_cuvinte(char * unit,int id_prop);
extern int insert_cuvint_into_db(char * cuvant, int id_prop);
extern int insert_prop_into_db(char * prop, char * url);
extern int mysql_connection_start();
extern void mysql_connection_end();
extern int sparge_prop_bufferul_pentru_bd(char * buffer, char  * current_url);

#endif